package os.filesystem.tool;

public class ToolFactory {
	
	public static FSTool getTool(String name){
		if(name.equals("ls")){
			return new Ls();
		}else if(name.equals("mkdir")){
			return new MkDir();
		}else if(name.equals("rm")){
			return new Rm();
		}
		else{
			System.out.println("No such command: " + name);
			return null;
		}
	}

}
